package com.wp.design.create.builder.v2;

public class Course {
	private String courseName;
	private String coursePPT;
	private String courseVideo;
	private String courseQA;
	private String courseArticle;

	@Override
	public String toString() {
		return "Course{" +
				"courseName='" + courseName + '\'' +
				", coursePPT='" + coursePPT + '\'' +
				", courseVideo='" + courseVideo + '\'' +
				", courseQA='" + courseQA + '\'' +
				", courseArticle='" + courseArticle + '\'' +
				'}';
	}


	public Course(CourseBuilder builder) {
		this.courseName = builder.courseName;
		this.coursePPT = builder.coursePPT;
		this.courseVideo = builder.courseVideo;
		this.courseQA = builder.courseQA;
		this.courseArticle = builder.courseArticle;
	}

	public static class  CourseBuilder{
		private String courseName;
		private String coursePPT;
		private String courseVideo;
		private String courseQA;
		private String courseArticle;
		public    CourseBuilder buildCourseName(String courseName){
			this.courseName = courseName;
			return this;
		};
		public  CourseBuilder buildCoursePPT(String coursePPT){
			this.coursePPT = coursePPT;
			return this;
		};
		public  CourseBuilder buildCourseVideo(String courseVideo){
			this.courseVideo = courseVideo;
			return this;
		};
		public  CourseBuilder buildCourseQA(String courseQA){
			this.courseQA = courseQA;
			return this;
		};
		public  CourseBuilder buildCourseArticle(String courseArticle){
			this.courseArticle = courseArticle;
			return this;
		};
		public  Course build(){
			return new Course(this);
		};
	}
}
